using CSV
using DataFrames
using Plots

filename = "sample_data/sample20241128104058.csv"  # 替换为您的文件名
data = DataFrame(CSV.File(filename))

# 提取各列数据
point_numbers = data[:, 1]
timestamps = data[:, 2]
temperatures = data[:, 3]
measurements = data[:, 4]

plot(point_numbers[1:end], measurements[1:end], label="Original Data", linewidth=2, color=:blue)
xlabel!("Time (s)")
ylabel!("Amplitude")
title!("Filter Response")
savefig("result/Data_analysis/origin_data.png")
println("result/Data_analysis/origin_data.png saved.")
